package com.fr.data.impl;

public class TreeAccessData
{
  private String[] mark;
  private String[] parentmark;
  private Object data;
  private TreeAccessData parentData;

  public TreeAccessData(String[] paramArrayOfString1, String[] paramArrayOfString2, Object paramObject)
  {
    this.mark = paramArrayOfString1;
    this.parentmark = paramArrayOfString2;
    this.data = paramObject;
  }

  public String[] getMark()
  {
    return this.mark;
  }

  public void setMark(String[] paramArrayOfString)
  {
    this.mark = paramArrayOfString;
  }

  public String[] getParentmark()
  {
    return this.parentmark;
  }

  public void setParentmark(String[] paramArrayOfString)
  {
    this.parentmark = paramArrayOfString;
  }

  public Object getData()
  {
    return this.data;
  }

  public void setData(Object paramObject)
  {
    this.data = paramObject;
  }

  public TreeAccessData getParentData()
  {
    return this.parentData;
  }

  public void setParentData(TreeAccessData paramTreeAccessData)
  {
    this.parentData = paramTreeAccessData;
  }

  public Object getData(int paramInt)
  {
    int i = extendLength();
    if (paramInt >= i)
      return null;
    TreeAccessData localTreeAccessData = this;
    while (i != paramInt + 1)
    {
      localTreeAccessData = localTreeAccessData.getParentData();
      --i;
    }
    return localTreeAccessData.getData();
  }

  public int extendLength()
  {
    int i = 1;
    TreeAccessData localTreeAccessData = this;
    while (localTreeAccessData.getParentData() != null)
    {
      localTreeAccessData = localTreeAccessData.getParentData();
      ++i;
    }
    return i;
  }
}